home *** CD-ROM | disk | FTP | other *** search
/ PC Zone 96 / PC Zone #096.7z / Dppcz1200.mdf / Demos / Gunlok / data1.cab / Program_Executable_Files / scripts / warflash.gsh < prev    next >
Text File  |  2000-09-09  |  2KB  |  83 lines

  1. // defines WARFLASH robot
  2. ////////////////////////////////////////////////////////////////////////////////////
  3.  
  4. // start wrapper - prevent multiple inclusions or recursive inclusions
  5.  
  6. #ifndef INCLUDED_WARFLASH_GSH
  7. #define INCLUDED_WARFLASH_GSH
  8.  
  9. ////////////////////////////////////////////////////////////////////////////////////
  10.  
  11. #include "grenade_launcher.gsh"
  12. #include "defaults.gsh"
  13.  
  14. hierarchy Hcy_warflashfrag
  15. {
  16.     file    "units\warflashfrag.rif"
  17.     name    "warflashfrag"
  18.     hotspot none
  19. }
  20.  
  21. role Rol_warflashfrag : Rol_FragObject
  22. {
  23.     shape            Hcy_warflashfrag
  24.     identifier        "warflashfrag"
  25. }
  26.  
  27. frag data Frg_warflashfrag
  28. {
  29.     role Rol_warflashfrag
  30.     scale 4
  31.     replace yes
  32. }
  33.  
  34. hierarchy Hcy_warflash
  35. {
  36.     file "units\warflash.RIF"
  37.     name "warflash"
  38.     hotspot "Dum Flash"
  39.     alternate hotspot "Dum Flash L"
  40. }
  41.  
  42. /*hierarchy Hcy_Warflash_Shadow
  43. {
  44.     file "units\scarflash_shadow.RIF"
  45.     name "scarflash"
  46. }*/
  47.  
  48. character Chr_warflash : Chr_DefaultBaddie
  49. {
  50.     turning speed   0.75    // this is in revolutions per second
  51.     walking speed   1    // this is in animation cycles per second
  52.     weapon          plasma pistol
  53.     strength        60    // initial strength points
  54.     aim             2    // how many degrees off target he can be at most
  55.     sight angle    30    // in degrees
  56.     sight range     15    // in metres
  57.     hearing range    12    // in metres
  58.     aggression    1    // from 0 to 1
  59.     radius        1    // used by the movement model
  60. //    shadow hierarchy    Hcy_Warflash_Shadow
  61. }
  62.  
  63. role Rol_warflash : Rol_DefaultRobot
  64. {
  65.     shape        Hcy_warflash
  66.  
  67.     character    Chr_warflash
  68.  
  69.     identifier    "warflash"
  70.  
  71.     recon name    warflash recon
  72.     
  73.     destructibility    Frg_warflashfrag
  74.  
  75.     armour        2
  76.  
  77.     ai        bot
  78. }
  79.                     
  80. ////////////////////////////////////////////////////////////////////////////////////
  81.  
  82. // end wrapper - for preventing multiple or recursive inclusions
  83. #endif // !INCLUDED_warflash_GSH